package com.eujian.nacoscumsumer.controller;

import com.eujian.nacoscumsumer.feign.ProviderFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping
@RestController
public class CumsumerController {
    @Autowired
    private ProviderFeign providerFeign;
    @GetMapping("action")
    public String action(@RequestParam("action") String action){
        String result = providerFeign.action(action);
        return "我是经过cumsumer的"+result;
    }
}
